<template>
  <div class="template-container">
    <div class="user-info-container">
      <UserInfoCard />
    </div>
    <div class="application-container">
      <el-card class="view-container">
        <div class="card-header">
          <h2>申请详情</h2>
        </div>
        <router-view />
      </el-card>
    </div>
  </div>
</template>

<script setup lang="ts">
import UserInfoCard from "@/views/CommonViews/AddApplicationViews/template/components/UserInfoCard.vue";
</script>

<style scoped>
.template-container {
  margin: 0 auto;
  width: 90%;
}

.user-info-container,
.application-container {
  width: 100%;
  max-width: 1200px;
}

.user-info-container {
  margin-top: 40px;
  margin-bottom: 50px;
}

.application-container {
  justify-content: center;
  margin-bottom: 40px;
}

.view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
}

.card-header {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.card-header h2 {
  font-weight: bold;
  margin: 0;
}
</style>
